## Process this file with automake to produce Makefile.in


uidir = $(datadir)/curtain/ui
ui_DATA = curtain.ui \
	  curtain.png

INCLUDES = -I$(top_srcdir) -I$(includedir)

if !PLATFORM_WIN32
        AM_CPPFLAGS = -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" 
else
        AM_CPPFLAGS = -DPACKAGE_LOCALE_DIR=\""../$(DATADIRNAME)/locale"\" 
endif

AM_CPPFLAGS += -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
	-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
	-L$(libdir) \
	$(CURTAIN_CFLAGS)

AM_CFLAGS =\
	 -Wall\
	 -g -L$(libdir)


bin_PROGRAMS = curtain

curtain_SOURCES = \
	callbacks.c \
	callbacks.h \
	main.c \
	utils.c \
	utils.h


curtain_LDFLAGS = 

if ENABLE_STATIC
curtain_LDFLAGS += -all-static -Wl,-static
else
if !PLATFORM_WIN32
if WITH_GNU_LD
curtain_LDFLAGS += -Wl,--export-dynamic
endif
endif
endif

#This create a windows executable instead an msdos ones
if PLATFORM_WIN32
curtain_LDFLAGS += -mwindows
endif

curtain_LDADD = $(CURTAIN_LIBS)

EXTRA_DIST = $(ui_DATA)

uninstall-local:

